package com.hnucm.c201901020121.Activity;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.ImageView;

import androidx.appcompat.app.AppCompatActivity;

import com.hnucm.c201901020121.R;

public class PublishTaskAct extends AppCompatActivity {
    ImageView zhongtong, yuantong, yunda, shunfeng, shentong, jingdong, youzheng, baishi, qitakuaidi;
    ImageView apple, banana, pear, orange, dragonFruit, fruit, watermelon, qitafruit;
    ImageView meituan, elem, qitawaimai, daifan, shiwu, qitarenwu, back;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_publish_task);
        initView();
        back.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                finish();
            }
        });
        zhongtong.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent = new Intent(PublishTaskAct.this, EditTaskAct.class);
                intent.putExtra("label", "中通快递");
                startActivity(intent);
            }
        });
        yuantong.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent = new Intent(PublishTaskAct.this, EditTaskAct.class);
                intent.putExtra("label", "圆通快递");
                startActivity(intent);
            }
        });
        yunda.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent = new Intent(PublishTaskAct.this, EditTaskAct.class);
                intent.putExtra("label", "韵达快递");
                startActivity(intent);
            }
        });
        shunfeng.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent = new Intent(PublishTaskAct.this, EditTaskAct.class);
                intent.putExtra("label", "顺丰快递");
                startActivity(intent);
            }
        });
        shentong.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent = new Intent(PublishTaskAct.this, EditTaskAct.class);
                intent.putExtra("label", "申通快递");
                startActivity(intent);
            }
        });
        jingdong.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent = new Intent(PublishTaskAct.this, EditTaskAct.class);
                intent.putExtra("label", "京东快递");
                startActivity(intent);
            }
        });
        youzheng.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent = new Intent(PublishTaskAct.this, EditTaskAct.class);
                intent.putExtra("label", "中国邮政");
                startActivity(intent);
            }
        });
        baishi.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent = new Intent(PublishTaskAct.this, EditTaskAct.class);
                intent.putExtra("label", "百世快递");
                startActivity(intent);
            }
        });
        qitakuaidi.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent = new Intent(PublishTaskAct.this, EditTaskAct.class);
                intent.putExtra("label", "其他快递");
                startActivity(intent);
            }
        });
        meituan.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent = new Intent(PublishTaskAct.this, EditTaskAct.class);
                intent.putExtra("label", "美团");
                startActivity(intent);
            }
        });
        elem.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent = new Intent(PublishTaskAct.this, EditTaskAct.class);
                intent.putExtra("label", "饿了么");
                startActivity(intent);
            }
        });
        qitawaimai.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent = new Intent(PublishTaskAct.this, EditTaskAct.class);
                intent.putExtra("label", "其他外卖");
                startActivity(intent);
            }
        });
        daifan.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent = new Intent(PublishTaskAct.this, EditTaskAct.class);
                intent.putExtra("label", "带饭");
                startActivity(intent);
            }
        });
        shiwu.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent = new Intent(PublishTaskAct.this, EditTaskAct.class);
                intent.putExtra("label", "拾物");
                startActivity(intent);
            }
        });
        qitarenwu.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent = new Intent(PublishTaskAct.this, EditTaskAct.class);
                intent.putExtra("label", "其他任务");
                startActivity(intent);
            }
        });
        apple.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent = new Intent(PublishTaskAct.this, EditTaskAct.class);
                intent.putExtra("label", "苹果");
                startActivity(intent);
            }
        });
        banana.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent = new Intent(PublishTaskAct.this, EditTaskAct.class);
                intent.putExtra("label", "香蕉");
                startActivity(intent);
            }
        });
        pear.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent = new Intent(PublishTaskAct.this, EditTaskAct.class);
                intent.putExtra("label", "梨子");
                startActivity(intent);
            }
        });
        orange.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent = new Intent(PublishTaskAct.this, EditTaskAct.class);
                intent.putExtra("label", "橘子");
                startActivity(intent);
            }
        });
        dragonFruit.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent = new Intent(PublishTaskAct.this, EditTaskAct.class);
                intent.putExtra("label", "火龙果");
                startActivity(intent);
            }
        });
        fruit.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent = new Intent(PublishTaskAct.this, EditTaskAct.class);
                intent.putExtra("label", "水果捞");
                startActivity(intent);
            }
        });
        watermelon.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent = new Intent(PublishTaskAct.this, EditTaskAct.class);
                intent.putExtra("label", "西瓜");
                startActivity(intent);
            }
        });
        qitafruit.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent = new Intent(PublishTaskAct.this, EditTaskAct.class);
                intent.putExtra("label", "其他水果");
                startActivity(intent);
            }
        });
    }

    void initView() {
        zhongtong = findViewById(R.id.imageView24);
        yuantong = findViewById(R.id.imageView27);
        yunda = findViewById(R.id.imageView28);
        shunfeng = findViewById(R.id.imageView29);
        shentong = findViewById(R.id.imageView34);
        jingdong = findViewById(R.id.imageView31);
        youzheng = findViewById(R.id.imageView32);
        baishi = findViewById(R.id.imageView33);
        qitakuaidi = findViewById(R.id.imageView35);
        apple = findViewById(R.id.imageView36);
        banana = findViewById(R.id.imageView37);
        pear = findViewById(R.id.imageView38);
        orange = findViewById(R.id.imageView39);
        dragonFruit = findViewById(R.id.imageView41);
        fruit = findViewById(R.id.imageView25);
        watermelon = findViewById(R.id.imageView26);
        qitafruit = findViewById(R.id.imageView30);
        meituan = findViewById(R.id.imageView42);
        elem = findViewById(R.id.imageView43);
        qitawaimai = findViewById(R.id.imageView44);
        daifan = findViewById(R.id.imageView40);
        shiwu = findViewById(R.id.imageView45);
        qitarenwu = findViewById(R.id.imageView46);
        back = findViewById(R.id.imageView47);
    }

}